﻿Public Class RrelApoderado

    Public Shared Function Añadir(ByVal descEmpresa As String, ByVal prelApoderado As ErelApoderado) As Boolean
        Dim resultado As Boolean = False

        Dim options As New TransactionOptions
        options.IsolationLevel = Transactions.IsolationLevel.ReadCommitted
        options.Timeout = New TimeSpan(0, 2, 0)

        Using scope As New TransactionScope(TransactionScopeOption.Required, options)
            Try
                resultado = DrelApoderado.Añadir(descEmpresa, prelApoderado)
                scope.Complete()
            Catch ex As Exception
                Throw
            End Try
        End Using

        Return resultado
    End Function

End Class
